package com.itheima.homework.work2;
//哺乳类
public class Mammals extends Animal{
    public Mammals() {
    }

    public Mammals(String age, String color) {
        super(age, color);
    }

    @Override
    public void action() {
        super.action();
    }
}
class elephant extends Mammals{
    public elephant() {
    }

    public elephant(String age, String color) {
        super(age, color);
    }

    @Override
    public void action() {
        System.out.println("跑");
    }
}
